﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wicresoft.UnifyShow.Business
{
    public interface ICommonResource
    {
        List<CommonResourceModel> GetAllCommonResources(out decimal totalCount, int? pageIndex, int? pageSize, string sort = "CREATETIME", string order = "Descending");
        List<CommonResourceModel> GetAllOpsDocuments(string siteid, out decimal totalCount, int? pageIndex, int? pageSize, string sort = "CREATETIME", string order = "Descending");
        List<CommonResourceModel> GetPlanByKeywords(out decimal totalCount, string keywords, int? pageIndex, int? pageSize, string sort = "ID", string order = "Descending");
        List<CommonResourceModel> GetOpsByKeywords(out decimal totalCount, string keywords, int? pageIndex, int? pageSize, string sort = "ID", string order = "Descending");
        List<CommonResourceModel> SearchCom(string keywords, out decimal totalCount, int? pageIndex, int? pageSize, string sort = "ID", string order = "Descending");
        List<CommonResourceModel> SearchOps(string keywords, out decimal totalCount, int? pageIndex, int? pageSize, string sort = "ID", string order = "Descending");
        CommonResourceModel GetByID(int id);
        List<CommonResourceModel> GetAllComInfo();
        List<CommonResourceModel> GetAllOpsInfo(string siteid);
        int Add(CommonResourceModel model);
        bool Delete(int i);
        int Update(CommonResourceModel model);
        int AddList(IList<CommonResourceModel> models);
    }
}
